package com.tzr.service;

import com.tzr.bean.User;
import com.tzr.bean.Weibo;
import com.tzr.dao.UserDaoImpl;

import java.util.List;

public class UserDaoServiceImpl implements UserDaoService {
    private UserDaoImpl dao =new UserDaoImpl();
    @Override
    public List<Weibo> getAll() {
       return dao.getAll();
    }

    @Override
    public User login(String uname, String upassword) {
        return dao.login(uname,upassword);

    }

    @Override
    public int Zan() {
        int zan =dao.Zan();
        return zan;
    }

    @Override
    public boolean DianZan() {

        return dao.DianZan();
    }

    @Override
    public boolean PingLun(String uname, String pinglun) {

        return dao.PingLun(uname, pinglun);
    }
}
